package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@Table(name = "shop_category_product")
public class CategoryProduct implements Serializable {

	private static final long serialVersionUID = -5510412681545042113L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "category_id_bigint", columnDefinition = "bigint(20)")
	private Long categoryId;
	@Column(name = "product_id_bigint", columnDefinition = "bigint(20)")
	private Long productId;
}
